<@master template="master/master-loan"  title="贷款详情">
<div class="mt10">
<a href="#history" onclick="open_history();"><i class="cklcIco"></i>查看流程现流转节点</a>
<a class="ml20" href="<@url value='/process/auditors?orgNo=${loanapply.ltd}' domain='o2o.admin.workflow'/>" target="_blank"><i class="clzjdIco"></i>查看所有流程节点及审核人</a>
</div>
<!-- 状态图 begin -->
 <!--  <div class="action-ajax-load" data-url="<@url value='/wftypeStatus/status?loanapplyNo=${loanapply.loanapplyNo}'/>"></div> -->
<!--状态图  end  -->
 	 	<div class="detailsBox mt10">
  		<div class="openBox">
  			 <#assign custType=loanapply.wfType />
		  		<h3><i class="jtIco1"></i>贷款要素
		  	 <@permission permissionName="loanapplyUpdate">
		  		<#if custType=="NEW" || custType=="ZF" >
				 <a class="fr edit btn_blue" target="_blank"
				  data-url="<@url value='/loanapply/findloan?loanapplyNo=${loanapply.loanapplyNo}'/>">编辑贷款信息</a>
				 </#if>
			</@permission>
				  </h3>
		        <div class="detaiTab" style="display: none;">
		            <table width="100%" border="0" cellspacing="0" cellpadding="0">
		            	<tbody>
		            	<#if loanapply.continueLoanParenNo!="">
							<tr>
								<td width="15%" align="right" class="bg">上一笔贷款单号：</td>
								<td width="35%">${loanapply.continueLoanParenNo}</td>
								<td width="15%" align="right" class="bg">是否为续贷：</td>
								<td>是</td>
							</tr>
						</#if>
		                	<tr>
		                    	<td align="right" class="bg" width="18%">贷款单号:</td>
		                      	<td width="35%">${loanapply.billCode}</td>
		                        <td align="right" class="bg" width="18%">客户名称:</td>
		                        <td>${basic.customerSd}-${loanapply.customeRname}</td>
		                    </tr>
		                    <tr>	
		                    	<td align="right" class="bg"><span class=" fs14">申请金额(元):</span></td>
		                        <td><span class=" fs14"><@numberFormat value="${loanapply.loanaMount}" /></span></td>
		                        <td align="right" class="bg"><span class=" fs14">申请期限:	</span></td>
		                        <td><span class=" fs14">${loanapply.loanTerm}个月</span></td>
		                    </tr>
		                     <tr>	
		                    	<td align="right" class="bg"><span class=" fs14">还款方式:	</span></td>
		                        <td><span class=" fs14"><@select dataSouceType="OTOREPAYMENTWAY" value="${loanapply.repayMentway}" renderonly="true"/></span></td>
		                        <td align="right" class="bg"><span class=" fs14">利率:</span></td>
		                        <td><span class=" fs14"><#if (loanapply.loanrate)??>${(loanapply.loanrate*100)?string("0.000")}%</#if></span></td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">信贷经理姓名:</td>
		                      	<td>${loanapply.operatorName}</td>
		                        <td align="right" class="bg">经办平台:</td>
		                        <td>${loanapply.ltdCode}-${loanapply.ltdName}</td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">送审银行:</td>
		                      	<td><@select dataSouceType="BANKTYPEO2O" value="${loanapply.bankLoanName}" renderonly="true"/></td>
		                        <td align="right" class="bg">产品类型:</td>
		                        <td><@select dataSouceType="OTO_LOAN_TYPE" value="${loanapply.loanType}" renderonly="true"/></td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">贷款申请日期:</td>
		                      	<td><span class=" fs14"><#if (loanapply.createDate)??>${loanapply.createDate?string('yyyy-MM-dd')}</#if></span></td>
		                        <td align="right" class="bg">担保方式:</td>
		                        <td><@select dataSouceType="OTOGUARANTEEWAY" value="${loanapply.guarAnteeWay}" renderonly="true"/></td>
		                    </tr>
		                    <tr>
								<td align="right" class="bg">推荐人姓名:</td>
		                      	<td>${loanapply.referrerName}</td>
		                      	<td align="right" class="bg">征信银行:</td>
		                      	 <td><@select dataSouceType="BANKTYPEO2O_SB" value="${loanapply.bankType}" renderonly="true"/></td>
							</tr>
		                    
		                    <tr>
								<td align="right" class="bg">备注</td>
								<td >${loanapply.remark}</td>
							</tr>
		                </tbody>
		            </table>  
		  		 </div>
         </div>
          <!-- 贷款要素   end -->
          <!-- 征信初审 begin -->
           <#if creditReport!=null>
            <div class="action-ajax-load" id="file_uploader" data-url="<@url value='/detail/editCredit?referId=${loanapply.loanapplyNo}'/>"></div>
          </#if>
          <!-- 征信初审  end -->
   		<!-- 保证金、管理费和风险补偿金 begin -->
   		<#assign loan_status=loanStatus.billStatus />
  			<#if loan_status!="NEW" &&loanStatus!=null>
  				<div class="action-ajax-load" data-url="<@url value='/workflowcheck/sqbzj_view?referId=${loanapply.loanapplyNo}' />"><p class="onload"></p></div>
  			</#if>
  		<!-- 保证金、管理费和风险补偿金 end -->
  		<!-- 借款人信息  begin -->
        <div class="openBox"> 
		        <h3 class="mt20"><i class="jtIco1"></i>借款人信息
		        <@permission permissionName="loanapplyUpdate">
				 <#if custType=="NEW" || custType=="ZF">
				 <a class="action-ajax-btn fr edit btn_blue" 
				  data-url="<@url value='/customer/edit_basic?customer_id=${basic.customerId}' domain='o2o.admin.crm'/>">编辑借款人信息</a>
				  </#if>
				 </@permission>
		        </h3>
		        <div class="detaiTab" style="display: none;">
		            <table width="100%" border="0" cellspacing="0" cellpadding="0">
		            	<tbody>
		                	<tr>
		                        <td align="right" class="bg" width="18%">借款人姓名:</td>
		    					<td colspan="3">${basic.customerName}</td>
		                    </tr>
		                    <tr>	
		                    	<td align="right" class="bg" width="18%">借款人姓名拼音:</td>
		                        <td width="35%">${basic.customerNamePinyin}</td>
		                        <td align="right" class="bg" width="18%">贷款次数:</td>
		                        <td><div class="action-ajax-load" data-url="<@url value='/loanrest/find_loan_account/${loanapply.loanapplyNo}/${loanapply.loanId}'/>"></div></td>
		                    </tr>
		                    <tr>	
		                    	<td align="right" class="bg">性别:</td>
		                        <td><@select dataSouceType="SEX" class="tabInp" value="${basic.sex}" renderonly="true"/>
		                        <input type="hidden" value="${basic.sex}" name="sex" renderonly="true"></td>
		                        <td align="right" class="bg">年龄:</td>
		                        <td>${basic.age}岁</td>
		                    </tr>
		                     <tr>	
		                    	<td align="right" class="bg">婚姻情况:</td>
		                        <td ><@select dataSouceType="CRMFAMILYSTATUS" value="${basic.maritalStatus}" renderonly="true"/></td>
		                    	<td align="right" class="bg">客户来源:</td>
		                        <td ><@select dataSouceType="CUSTOMERSOURCE" value="${basic.customerSource}" renderonly="true"/></td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">证件类型:</td>
		                      	<td><@select dataSouceType="OTOIDCARDTYPE" class="tabInp" value="${basic.idType}"  renderonly="true"/></td>
		                        <td align="right" class="bg">证件号码:</td>
		                        <td>${basic.idNumber}</td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">客户SD号:</td>
		                      	<td>${basic.customerSd}</td>
		                        <td align="right" class="bg">客户类型</td>
		                      	<td><@select dataSouceType="OTO_CUSTOMER_TYPE" class="tabInp" value="${basic.customerType}"  renderonly="true"/></td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">发证机关:</td>
		                      	<td>${expan.issuingAuthority}</td>
		                        <td align="right" class="bg">证件到期日:</td>
		                        <td>
		                          <#if (expan.licenseExpirationDate)??>
									${expan.licenseExpirationDate?date}
								  </#if>
								</td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">联系电话:</td>
		                      	<td>${basic.mobileNumber}<input type="hidden" value="${basic.mobileNumber}" name="userPhone"></td>
		                        <td align="right" class="bg">住宅电话:</td>
		                        <td>${expan.homePhone}</td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">银行状态:</td>
		                      	<td><span class=" fs14"><@select dataSouceType="BANK_ZX_STATUS" value="${loanUser.bankStatus}" renderonly="true"/></span></td>
		                        <td align="right" class="bg">银行申请编号:</td>
		                        <td>${loanUser.bankApplyno}</td>
		                    </tr>
		                    <tr>
		                    	<td align="right" class="bg">银行预审批额度:</td>
		                      	<td><@numberFormat value="${loanapply.creditline}" /></td>
		                        <td align="right" class="bg">银行上浮范围:</td>
		                        <td><@numberFormat value="${loanapply.creditRange}" /></td>
		                    </tr>
		                    <tr>
								<td align="right" class="bg">银行签署意见：</td>
								<td colspan="3">${loanUser.notation}</td>
							</tr>
		                    <tr>	
		                    	<td align="right" class="bg">客户名称:</td>
		                      <td colspan="3">${basic.customerSdName}</td>
		                    </tr>
		                    <tr>	
		                    	<td align="right" class="bg">收件地址:</td>
		                      <td colspan="3">${expan.recipientAddress}</td>
		                    </tr>
		                    <tr>	
		                    	<td align="right" class="bg">户口所在地:</td>
		                        <td colspan="3">${expan.permanentResidence}</td>
		                    </tr>
		                </tbody>
		            </table>  
			   </div>
	   </div>
	   <!-- 借款人信息  end -->
	   
	   <!-- 借款人配偶信息 begin -->
	   <#if (materBasic.customerId)??>
	     <div class="openBox">
			    <h3 class="mt20"><i class="jtIco1"></i>借款人配偶信息</h3>
		        <div class="detaiTab" style="display: none;">
		            <table width="100%" border="0" cellspacing="0" cellpadding="0">
		            	<tbody>
		                	<tr>
		                    	<td align="right" class="bg" width="18%">配偶姓名:</td>
		                      	<td width="35%">${materBasic.customerName}</td>
		                        <td align="right" class="bg" width="18%">配偶姓名拼音:</td>
		                        <td>${materBasic.customerNamePinyin}</td>
		                    </tr>
		                     <tr>	
		                    	<td align="right" class="bg">证件类型:</td>
		                        <td><@select dataSouceType="OTOIDCARDTYPE" class="tabInp" value="${materBasic.idType}"  renderonly="true"/></td>
		                        <td align="right" class="bg">证件号码:</td>
		                      	<td>${materBasic.idNumber}</td>
		                    </tr>
		                    <tr>
		                        <td align="right" class="bg">贷款次数:</td>
		                        <td><div class="action-ajax-load" data-url="<@url value='/loanrest/find_mater_account/${loanapply.loanapplyNo}/${loanapply.loanId}'/>"></div></td>
		                        <td align="right" class="bg">联系电话:</td>
		                        <td colspan="3">${materBasic.mobileNumber}</td>
		                    </tr>
		                     <tr>
		                    	<td align="right" class="bg">银行状态:</td>
		                      	<td><span class=" fs14"><@select dataSouceType="BANK_ZX_STATUS" value="${loanMaterUser.bankStatus}" renderonly="true"/></span></td>
		                        <td align="right" class="bg">银行申请编号:</td>
		                        <td>${loanMaterUser.bankApplyno}</td>
		                    </tr>
		                    <tr>
								<td align="right" class="bg">银行签署意见：</td>
								<td colspan="3">${loanMaterUser.notation}</td>
							</tr>
		                </tbody>
		            </table>  
			   </div>
	   </div>
	   </#if>
	   <!-- 借款人配偶信息 end -->
	   
	   <!-- 附件信息 begin -->
	   <div class="openBox">
		    <h3 class="mt20"><i class="jtIco1"></i>附件信息</h3>
	       	<div class="dataBable" style="display: none;">
	            <@pagination paginationInfo="datalistInfo"/>
			 </div>    
		</div>
		<!-- 附件信息 end -->
		<!-- 客户门店信息 begin -->
		<div class="openBox">   
	   		<h3 class="mt20">
	   		<i class="jtIco1"></i>客户门店信息
	   		<@permission permissionName="loanapplyUpdate">
	   		<#if custType=="NEW" || custType=="ZF">
				 <a class="action-ajax-btn fr edit btn_blue" 
				  data-url="<@url value='/customerRest/shop_add?customer_id=${basic.customerId}' domain='o2o.admin.crm'/>">新增门店信息</a>
				  </#if>
	   		</@permission>
	   		</h3>
         	<div class="dataBable" style="display: none;">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                      <thead>
                        <tr>
                            <th>NO.</th>
                            <th>门店名称</th>
                            <th>门店类型</th>
                            <th>成立时间</th>
                            <th>与EA合作时间</th>
                            <th>行业类别</th>
                            <th>门店电话</th>
                            <th>操作</th>
                          </tr>
                      </thead>
                      <tbody>
                      <#list shop as sp>  
                       <tr>
                        	<td>${user_index+1}</td>
                            <td>${sp.shopname}</td>
                            <td><@select dataSouceType="OTOSHOPTYPE" class="tabInp" value="${sp.shoptype}"  renderonly="true"/></td>
                            <td>
                             <#if (sp.stupdate)??>
									${sp.stupdate?date}
							 </#if>
							</td>
                            <td>
                             <#if (sp.eacooperationdate)??>
								${sp.eacooperationdate?date}
							 </#if>
							 </td>
                            <td><@select dataSouceType="O2OVOCATION" class="tabInp"
							value="${sp.vocation}" renderonly="true"/></td>
                            <td>${sp.telephone}</td>
                             <td>
                             <a target="_blank" href="<@url value='/customer/getShopInfo?customer_id=${sp.customerId}&shopcode=${sp.shopcode}' domain='o2o.admin.crm'/>" >详情</a>
                              <@permission permissionName="loanapplyUpdate">
                             <#if custType=="NEW" || custType=="ZF" >
                             <a class="action-ajax-btn" href="<@url value='/customerRest/shop_edit?customer_id=${sp.customerId}&shopcode=${sp.shopcode}' domain='o2o.admin.crm'/>" >修改</a>
                              </#if>
                              </@permission>
                             </td>
                          </tr>
						</#list>  
                      </tbody>
                    </table> 
                </div> 
            </div>
            <!-- 客户门店信息 end -->
            <!-- 客户资产信息 begin -->
            <div class="openBox">    
				 <h3 class="mt20"><i class="jtIco1"></i>客户资产信息
				 <@permission permissionName="editCustomerInfo">
				 <#if custType=="NEW" || custType=="ZF" >
				 <a class="action-ajax-btn fr edit btn_blue" 
				  data-url="<@url value='/customer/edit_asset?customerId=${basic.customerId}' domain='o2o.admin.crm'/>">编辑</a>
				  </#if>
				  </@permission>
				  </h3>
			      <div class="detaiTab" style="display: none;">
			      <table border="0" cellpadding="0" cellspacing="0" width="100%">
			          <tbody>
			              <tr>
			                 <td class="bg" align="right" width="18%">自有房产:</td>
			                  <td>${assert.ownEstateNum}套</td>
			               </tr>
			               
			                <tr>
			                    <td class="bg" align="right" >其中红本:</td>
			                    <td>${assert.redNum}套 <label class="ml10">按揭：${assert.mortgageNum}套 
			                    </label> <label class="ml10">按揭期限：${assert.estateMortgageTerm}月</label>
			                    <label class="ml10">月还款：<@numberFormat value="${assert.estateMonthlyAmount}" />元</label>
			     				<label class="ml10">贷款余额：<@numberFormat value="${assert.estateLoanOver}" />元</label></td>
			         			</tr>
			                            
			                  <tr>
			                  <td class="bg" align="right" >自有车辆:</td>
			                  <td>${assert.ownVehiclesNum}辆</td>
			                   </tr>
			                   
			                <tr>
			               <td class="bg" align="right" >其中无抵押:</td>
			               <td>${assert.unsecuredNum}辆 <label class="ml10">按揭：${assert.vehicleMortgageNum}辆</label> <label class="ml10">按揭期限：${assert.vehicleMortgageTerm} 月</label><label class="ml10">月还款：<@numberFormat value="${assert.vehicleMonthlyAmount}"/>元</label>
			     			<label class="ml10">车辆贷款余额：<@numberFormat value="${assert.vehicleMortgageOver}" />元</label></td>
			                </tr>
			                
			                <tr>
			                 <td class="bg" align="right" >银行贷款（不含房贷车贷）:</td>
			                 <td>${assert.bankLoanItems}笔 <label class="ml10">贷款总额：<@numberFormat value="${assert.loanTotal}"/>元 </label> <label class="ml10">期限：${assert.loanTerm} 月</label><label class="ml10">月还款：<@numberFormat value="${assert.loanMonthlyRepayment}"/>元</label>
			  				   <label class="ml10">贷款余额：<@numberFormat value="${assert.loanOver}"/> 元</label></td>
			                 </tr>
			                 <tr>
			                 <td class="bg" align="right" >其他借款：</td>
			                 <td>${assert.otherLoan} 笔 <label class="ml10">借款总额：<@numberFormat value="${assert.borrowTotal}"/>元 </label> </td>
			                 </tr>
							<tr>
			                <td class="bg" align="right" >信用卡：</td>
			                <td>${assert.creditNum}张 <label class="ml10">透支 <@numberFormat value="${assert.overdraft}"/>元 </label> </td>
			                </tr>
			                 <tr>
			                  <td class="bg" align="right" >有无其他法律纠纷：</td>
			                  <td>
			                  		<#assign isLegalDisputes=assert.isLegalDisputes />
			                  		<#if (isLegalDisputes)??>
			                  			<#if isLegalDisputes=="N">
			                  				无
			                  			<#elseif isLegalDisputes=="Y">
			                  				有
			                  			</#if>
			                  		</#if>
			                  		&nbsp;&nbsp;${assert.legalDisputesInfo}
			                  </td>
			                  </tr>
			                 <tr>
			                   <td class="bg" align="right">借款人其他资产价值：</td>
			                   <td>
			                   	<@select dataSouceType="OTHER_LOAN" name="otherAssetsValue"  value="${assert.otherAssetsValue}" renderonly="true"/>
			                   </td>
			                  </tr>
			                 <tr>
			                   <td class="bg" align="right">备注：</td>
			                   <td>
			                   	${assert.remark}
			                   </td>
			                  </tr>
			                 </tbody>
			                 </table>  
			           </div>
					</div>
			<!-- 客户资产信息 end -->
			 <#assign foo=loanapply.wfType />
			<!-- SD系统交易记录汇总表（数据为近6个月内，自动从SD系统获取) begin -->
			<div class="openBox">  
			 <h3 class="mt20">
		 	<i class="jtIco1"></i>财务审核SD信息
			 </h3>
			<div class="dataBable action-pagination-table" style="display: none;">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
				<thead>
					<tr>
						<th>NO.</th>
						<th>年月</th>
						<th>提货金额（元）</th>
						<th>回款金额（元）</th>
						<th>应收账款（元）</th>
						<th>更新时间</th>
					</tr>
				</thead>
				<tbody>
				<#if o2oSd!=null>
				<tr>
						<td>1</td>
						<td>${o2oSd.firstMonth}</td>
						<td><@numberFormat value="${o2oSd.firstTakeAmount}"/></td>
						<td><@numberFormat value="${o2oSd.firstPaymentAmount}"/></td>
						<td><@numberFormat value="${o2oSd.firstRecAmount}"/></td>
						<td>${o2oSd.updateTime}</td>
					</tr>
					<tr class="bg">
						<td>2</td>
						<td>${o2oSd.secondMonth}</td>
						<td><@numberFormat value="${o2oSd.secondTakeAmount}"/></td>
						<td><@numberFormat value="${o2oSd.secondPaymentAmount}"/></td>
						<td><@numberFormat value="${o2oSd.secondRecAmount}"/></td>
						<td>${o2oSd.updateTime}</td>
					</tr>
					<tr>
						<td>3</td>
						<td>${o2oSd.thirdMonth}</td>
						<td><@numberFormat value="${o2oSd.thirdTakeAmount}"/></td>
						<td><@numberFormat value="${o2oSd.thirdPaymentAmount}"/></td>
						<td><@numberFormat value="${o2oSd.thirdRecAmount}"/></td>
						<td>${o2oSd.updateTime}</td>
					</tr>
					<tr class="bg">
						<td>4</td>
						<td>${o2oSd.fourthMonth}</td>
						<td><@numberFormat value="${o2oSd.fourthTakeAmount}"/></td>
						<td><@numberFormat value="${o2oSd.fourthPaymentAmount}"/></td>
						<td><@numberFormat value="${o2oSd.fourthRecAmount}"/></td>
						<td>${o2oSd.updateTime}</td>
					</tr>
					<tr>
						<td>5</td>
						<td>${o2oSd.fifthMonth}</td>
						<td><@numberFormat value="${o2oSd.fifthTakeAmount}"/></td>
						<td><@numberFormat value="${o2oSd.fifthPaymentAmount}"/></td>
						<td><@numberFormat value="${o2oSd.fifthRecAmount}"/></td>
						<td>${o2oSd.updateTime}</td>
					</tr>
					<tr class="bg">
						<td>6</td>
						<td>${o2oSd.sixthMonth}</td>
						<td><@numberFormat value="${o2oSd.sixthTakeAmount}"/></td>
						<td><@numberFormat value="${o2oSd.sixthPaymentAmount}"/></td>
						<td><@numberFormat value="${o2oSd.sixRecAmount}"/></td>
						<td>${o2oSd.updateTime}</td>
					</tr>
					<tr>
						<td>7</td>
						<td>月平均</td>
						<td><@numberFormat value="${o2oSd.takeAvgAmount}"/></td>
						<td><@numberFormat value="${o2oSd.paymentAvgAmount}"/></td>
						<td><@numberFormat value="${o2oSd.recAvgAmount}"/></td>
						<td>${o2oSd.updateTime}</td>
					</tr>
					<#else>
					<tr>
					<td colspan="6">
					<div class="jTxt detaiTab1"><span style="color: red">该客户暂时无sd数据</span></div>
					</td>
					</tr>
				</#if>
					
				</tbody>
			</table>
			</div>
			</div>
			
           <#if foo!="NEW">
  				<div class="action-ajax-load" data-url="<@url value='/workflowcheck/dk_view_zx?referId=${loanapply.loanapplyNo}' />"><p class="onload">财务审核加载中。。。</p></div>
   			</#if>
			
			<div class="openBox" id="sd">  
			 <h3 class="mt20">
		 	<i class="jtIco1"></i>SD系统交易记录汇总表（数据为近6个月内，自动从SD系统获取实时数据)
			 </h3>
        	 <div class="action-ajax-load-show" data-url="<@url value='/getSdData?customerSd=${basic.customerSd}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
        	</div> 
    		</div> 
		<!-- SD系统交易记录汇总表（数据为近6个月内，自动从SD系统获取) end -->
		<!-- 银行放款数据 begin -->
		   <#if loanapply.wfType == "O" || loanapply.wfType == "HN">
        	<div class="openBox">
			        <h3 class="mt20"><i class="jtIco"></i>银行放款数据</h3>
			        <div class="detaiTab">
			            <table width="100%" border="0" cellspacing="0" cellpadding="0">
			            	<tbody>
			                	<tr>
			                    	<td align="right" class="bg" width="18%">贷款申请金额:</td>
			                      	<td width="35%">${o2oBankInfo.applyAmount}</td>
			                        <td align="right" class="bg" width="18%">银行放款金额:</td>
			                        <td>${o2oBankInfo.loanAmount}</td>
			                    </tr>
			                    <tr>	
			                    	<td align="right" class="bg">放款银行:</td>
			                  		<td><@select dataSouceType="BANKTYPEO2O" value="${o2oBankInfo.loanBank}" renderonly="true"/></td>
			                        <td align="right" class="bg">放款利率:</td>
			                        <td><span class=" fs14"><#if (o2oBankInfo.loanRate)??>${(o2oBankInfo.loanRate*100)?string("0.000")}%</#if></span></td>
			                    </tr>
			                    <tr>	
			                    	<td align="right" class="bg">放款期限:</td>
			                        <td>${o2oBankInfo.loanTerm}个月</td>
			                        <td align="right" class="bg">实际放款日:</td>
			                        <td>${o2oBankInfo.loanDate}</td>
			                    </tr>
			                </tbody>
			            </table>  
				   </div>
			</div>
       </#if>  
       <!-- 银行放款数据 end -->
       <!-- 银行卡详情  begin-->
        <#if loanapply.wfType == "NF" || loanapply.wfType == "S" || loanapply.wfType == "O" || loanapply.wfType == "HN">
          <div class="action-ajax-load" data-url="<@url value='/loanDetail/queryBank?loanapplyNo=${loanapply.loanapplyNo}&flag=1' />"></div> 	  
        </#if>
       <!-- 银行卡详情  end-->
       <!-- 还款计划信息 begin -->
     <#if loanapply.wfType == "O" || loanapply.wfType == "HN">
      <div class="openBox">
	         <h3 class="mt20"><i class="jtIco"></i>还款计划信息</h3>
	        <div><@pagination paginationInfo="paymentspaginationInfo"/></div>
       </div>
       </#if>    
       <!-- 还款计划信息 end -->
   			<!-- 内审审批历史记录  begin -->	
   			<#if foo!="NEW"&&foo!="Z"&&foo!="ZF">
   				<div class="openBox">
	   				<h3 class="mt20"><i class="jtIco1"></i>贷款审批资料</h3>
	   				<div style="display: none;"><@pagination paginationInfo="auditResult"/></div>
   				</div>
   			</#if>
   			<!-- 内审审批历史记录  end -->	
   			<!-- 申报表单 动态表单  begin -->
   			<#if foo=="S"||foo=="O"||foo=="T"||foo=="SN">
   				<div class="action-ajax-load" data-url="<@url value='/workflowcheck/interview_user_bank_view?referId=${loanapply.loanapplyNo}' />"><p class="onload"></p></div> 	  
  			</#if>
  			<!-- 申报表单 动态表单  end -->
  			<!-- 工作流历史记录 begin -->
				<div class="action-ajax-load" id="history" data-url="<@url value='${agreeUrl}' />"></div>
 			<!-- 工作流历史记录 end -->
 			<!-- 动态按钮 -->
 			 <div class=" tac mtb20">
 			 	<span class="action-ajax-load" data-url="<@url value='/detail/loan-detail-button?loanapplyNo=${loanapply.loanapplyNo}&billCode=${loanapply.billCode}&wfType=${loanapply.wfType}'/>"></span> 	  
	 			<#if loanapply.bankType!=null>
	 			<a class="btn_auto_30 btn_blue" href="<@url value='/accessory/help/interview?resourceCode=businessGuidelines'/>" target="_blank">空白合同下载</a>
	 			</#if>
 			 </div>
 		</div>	
<script type="text/javascript">
function open_history()
{
    $("#history .action-open-button").trigger("click");
}
</script>
</@master>

	